package com.newblog.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Created with Intellij IDEA.
 * Description;
 * UserInfo:TQ02
 * Data:2023-12-10
 * Time:12:05
 * Text：
 */
@Data
@TableName("articleinfo")           //序列化
public class ArticleInfo implements Serializable {
    private int articleId;
    private String title;
    private String content;
    //局部时间格式化
    @JsonFormat(pattern = "yyy-MM-dd HH:mm",timezone="GMT+8")
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private int userId;
    private int rcount;   //阅读量
    private int state;
    private String name;
}
